#ifndef FILESERVER_H
#define FILESERVER_H

#include <QObject>
#include <QtNetwork>
#include <QtSql>

class FileServer : public QTcpServer
{
Q_OBJECT
public:
    FileServer(QObject *parent = 0);
    bool startListening(int port);
protected:
    void incomingConnection(int socket);
private:
   QTcpServer * server;
   QTcpSocket * connection;
   QSqlDatabase db;
};

#endif // FILESERVER_H
